package it.slothy.noveleditor.classes.instance;

import it.slothy.noveleditor.classes.elements.VNObject;
import it.slothy.noveleditor.classes.objects.effect.Effect;
import it.slothy.noveleditor.enumaration.VNEnumObject;

import java.io.File;
import java.util.ArrayList;

public class PlaceAct extends VNObject{

	private String description;
	private ArrayList<Effect> successEffects;
	private ArrayList<Effect> negativeEffects;
	private File image;
	private ArrayList<Effect> actCost;
	
	//Numero che si deve passare per avere successo in questa Azione
	private int successRate;
	
	public PlaceAct(String n, String d, File f) {
		super(VNEnumObject.OBJ_PLACE_ACT, n);
		
		this.description = d;
		this.image = f;
		
		this.successEffects = new ArrayList<Effect>();
		this.negativeEffects = new ArrayList<Effect>();
		this.actCost = new ArrayList<Effect>();
	}

	public void addSuccessEffect(Effect effect){
		this.successEffects.add(effect);
	}
	
	public void addNegativeEffect(Effect effect){
		this.negativeEffects.add(effect);
	}
	
	public void addPlaceActionCost(Effect effect){
		this.actCost.add(effect);
	}
	
	public ArrayList<Effect> getSuccessEffects() {
		return successEffects;
	}

	public ArrayList<Effect> getNegativeEffects() {
		return negativeEffects;
	}

	public File getImage() {
		return image;
	}

	public void setImage(File image) {
		this.image = image;
	}

	public ArrayList<Effect> getPlaceActionCost() {
		return actCost;
	}

	public int getSuccessRate() {
		return successRate;
	}

	public void setSuccessRate(int successRate) {
		this.successRate = successRate;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

}
